package com.fw.service.mail.impl;

import java.util.Date;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Value;

import com.fw.service.mail.MailService;

public class MailServiceImpl implements MailService {

    // #('${settings.some.property}')
    @Value("${config.emails}")
    private String emails;

    private static Logger log = Logger.getLogger(MailServiceImpl.class);

    @Override
    public Boolean process() {
	Boolean success = Boolean.FALSE;
	try {
	    log.debug("begin process " + emails + ", " + new Date());
	    success = Boolean.TRUE;
	} catch (Exception e) {
	    log.error(e, e.getCause());
	}
	return success;
    }

}
